package com.education.business.service.education;

import com.baomidou.mybatisplus.extension.service.IService;
import com.education.common.model.PageInfo;
import com.education.model.dto.TopicContentDTO;
import com.education.model.dto.TopicDTO;
import com.education.model.entity.TopicInfoEntity;
import com.education.model.request.PageParam;

/**
 * @author HP
 * @description 针对表【topic_info】的数据库操作Service
 * @createDate 2025-05-29 14:08:20
 */
public interface TopicInfoService extends IService<TopicInfoEntity> {

    /**
     * 后端话题列表
     *
     * @param pageParam
     * @param courseName
     * @return
     */
    PageInfo<TopicContentDTO> selectPageList(PageParam pageParam, String courseName);

    /**
     * 话题内容
     */
    PageInfo<TopicContentDTO> selectContentList(PageParam pageParam, Integer topicId, Integer courseId);

    /**
     * 新建主题
     *
     * @param dto
     */
    void createTopic(TopicDTO dto);

    /**
     * 回复主题
     *
     * @param dto
     */
    void replyTopic(TopicDTO dto);

}
